package com.fr.dao;
import java.sql.SQLException;
import java.util.List;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import com.fr.model.Carousels;

public class CarouselsDao extends BaseDao {
  public List<Carousels> getAll() {
    try {
      String sql=" select id, icon, service_id " + 
          " from carousels"
          + " order by id";
      return queryRunner.query(sql, new BeanListHandler<>(Carousels.class));
    } catch (SQLException e) {
      e.printStackTrace();
    }
    return null;
  }
}